home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root.pauseIt <= 0)
- {
- if(_root.trickster != 1)
- {
- this._y += _root.gravitySetting - _root.slower;
- }
- else
- {
- millo = random(7) + 1;
- switch(millo)
- {
- case 1:
- upper = 1;
- this._y -= _root.gravitySetting - _root.slower;
- break;
- case 2:
- this._y += _root.gravitySetting - _root.slower;
- upper = 0;
- break;
- default:
- if(upper == 1)
- {
- this._y -= _root.gravitySetting - _root.slower;
- }
- else
- {
- this._y += _root.gravitySetting - _root.slower;
- }
- }
- }
- xPos = random(2) + 1;
- switch(xPos)
- {
- case 1:
- this._x += random(_root.ballRandom) + 5;
- if(this.hitTest(_root.wall2))
- {
- this._x -= 14;
- }
- break;
- case 2:
- this._x -= random(_root.ballRandom) + 5;
- if(this.hitTest(_root.wall1))
- {
- this._x += 14;
- }
- }
- }
- else
- {
- _root.pauseIt -= 1;
- }
- if(_root.slower > 0)
- {
- _root.slower -= 0.1;
- }
- if(_root.slower < 0)
- {
- _root.slower = 0;
- }
- if(this.hitTest(_root.extriYo2) || this.hitTest(_root.extriYo1))
- {
- this._y -= random(10) + 7;
- }
- if((this.hitTest(_root.ground) || this.hitTest(_root.ground2)) && _root.doubleBall == 1)
- {
- _root.gotoAndStop(4);
- }
- }
-